<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>参数</title>
	<script>
		//形参
		function sum(num1,num2) {
			document.write(num1+num2);
		}
		// num = 999;
		// 实参
		sum(5456,6457);
		// sum();
		function ji_tu(head,foot) {
			for (var i = 1; i <= head; i++) {
				if((i*4+(head-i)*2)==foot){
					document.write("兔："+i,"鸡："+(head-i));
				}
			}
		}

		ji_tu(80,268);








	</script>
</head>
<body>
	
</body>
</html>